package com.gm.lib.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/**
 * Created by Administrator on 2016/1/12.
 */
public class CallPhone {
    //    打电话
    public static void startCallPhone(Context _context, String telephoneNumber) {
        String no = "tel:" + telephoneNumber;
        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_DIAL);
        Uri uri = Uri.parse(no);
        intent.setData(uri);
        _context.startActivity(intent);


//
//          Intent intent = new Intent();
//        intent.setAction(Intent.ACTION_DIAL);
//        String data = "tel:4000901236";
//        Uri uri = Uri.parse(data);
//        intent.setData(uri);
//        startActivity(intent);
    }
}
